#include <stdio.h>
#include <unistd.h>
//#include <sys/types.h>
#include <string.h>

int main(int argc,char* argv[],char* env[])
{
	//(void*)argc;
	//(void*)argv;
	(void*)env;

	if(argc != 2)	//argv[0] 执行命令 argv[1]是参数 共两个string 因此argc==2
	{
		printf("Usage: %s {-a | -b | -c}\n",argv[1]);
		return 1;
	}

	const char* arg =argv[1];

	if (strcmp(arg, "-a")==0)
		printf("功能a\n");
	else if (strcmp(arg, "-b")==0)
		printf("功能b\n");
	else if (strcmp(arg, "-c")==0)
		printf("功能c\n");

	return 0;
}
